package design.graduation.crawler.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: 洪少尉
 * @Date: 2020/4/20 16:39
 * @Description: 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "website_crawler_book")
public class CrawlerBook implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 书名
     */
    @TableField(value = "book_name")
    private String bookName;

    /**
     * 作者
     */
    @TableField(value = "author")
    private String author;

    /**
     * 一级分类
     */
    @TableField(value = "primary_classification")
    private Integer primaryClassification;

    /**
     * 二级分类
     */
    @TableField(value = "secondary_classification")
    private Integer secondaryClassification;

    /**
     * 三级分类
     */
    @TableField(value = "tertiary_classification")
    private String tertiaryClassification;

    /**
     * 内容简介
     */
    @TableField(value = "introduction")
    private String introduction;

    /**
     * 保存时间
     */
    @TableField(value = "save_time")
    private Date saveTime;

    /**
     * 下载地址
     */
    @TableField(value = "download_url")
    private String downloadUrl;

    /**
     * 下载状态：0，未下载；1，已下载
     */
    @TableField(value = "download_status")
    private Integer downloadStatus;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_BOOK_NAME = "book_name";

    public static final String COL_AUTHOR = "author";

    public static final String COL_PRIMARY_CLASSIFICATION = "primary_classification";

    public static final String COL_SECONDARY_CLASSIFICATION = "secondary_classification";

    public static final String COL_TERTIARY_CLASSIFICATION = "tertiary_classification";

    public static final String COL_INTRODUCTION = "introduction";

    public static final String COL_SAVE_TIME = "save_time";

    public static final String COL_DOWNLOAD_URL = "download_url";

    public static final String COL_DOWNLOAD_STATUS = "download_status";
}